﻿<%@ Page MasterPageFile="~/Events.Master" Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs"
    Inherits="Events.Web.Default" %>

<asp:Content runat="server" ID="MainContent" ContentPlaceHolderID="MainContentPlaceHolder">
    <table>
        <tr>
            <td>
                Email:
            </td>
            <td>
                <asp:TextBox ID="Email" runat="server" Width="200"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Demand:
            </td>
            <td>
                <asp:DropDownList ID="DemandSelection" runat="server" DataSourceID="DemandDataSource"
                    DataTextField="Title" DataValueField="DemandDetailsGUID">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Button ID="Register" runat="server" OnClick="OnRegisterClicked" Text="Register for Demand" />
            </td>
        </tr>
        <asp:LinqDataSource ID="DemandDataSource" runat="server" ContextTypeName="Events.Data.HelfenHelfenEntities"
            Select="new (DemandDetailsGUID, Demand.Title)" TableName="DemandDetails" OrderBy="Demand.Title">
        </asp:LinqDataSource>
    </table>
</asp:Content>
